package vcp.models;

import java.util.*;
import java.util.ArrayList;

import java.util.Observable;

/**
 * Orders model
 *
 */
public class OrdersModel extends Observable {

	/**
	 * Create order request
	 */
	public void createOccasionalOrder() {
		setChanged();
		notifyObservers("createOccasionalOK");			
	}

	
	/**
	 * Subscription order request
	 */
	public void createSubscriptionOrder() {
		setChanged();
		notifyObservers("createSubscriptionOrderOK");			
	}
	
	
	/**
	 * Temp order request 
	 */
	public void createTemporaryOrder() {
		setChanged();
		notifyObservers("createTemporaryOrderOK");			
	}


	/**
	 * Cancel order request
	 */
	public void cancelOrder() {
		String str ="test";
		setChanged();
		notifyObservers(str);
		str="";
	}
	
	/**
	 * Track order request
	 */
	public void trackOrder() {
		List<String> trackList = new ArrayList<String>();
		trackList.add("one");
		trackList.add("two");
		trackList.add("three");		
		setChanged();		
		notifyObservers(trackList);
	}
	

       
}
